
<div class="boxer-table-list" style="width: 2000px;">
	<div class="pinglun-tabs">
		<a href="/report/list/0">待审核</a>
		<a href="/report/list/1" >审核通过</a>
		<a href="/report/list/2" class="active">审核拒绝</a>
		<br class="clr" />
	</div>
	<div class="box">
		<div class="search">
			<form method="post">
			<input type="hidden" name="SizePage" value="{{.SizePage}}"/>
				<i class="ico">搜索条件</i>
				<input type="text" class="t" placeholder="举报单号" name="Report_num" value="{{.Report_num}}"/>
				<input type="text" class="t" placeholder="手机号" name="Phone" value="{{.Phone}}"/>
				<input type="text" class="t time" name="rbtime" value="{{.rbtime}}" id="time1" readonly="readonly" onFocus="var time2=$dp.$('time2');WdatePicker({onpicked:function(){time2.focus();},maxDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd HH:mm'})" placeholder="举报时间" />
				<span class="fg">~</span>
				<input type="text" class="t time" name="retime" value="{{.retime}}" id="time2" readonly="readonly" onFocus="var time1=$dp.$('time1');WdatePicker({minDate:'#F{$dp.$D(\'time1\')}',maxDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd HH:mm'})" placeholder="举报时间" />
					<input type="text" class="t" placeholder="被举报文章标题" name="Article_title" value="{{.Article_title}}"/>
				<input type="text" class="t" placeholder="被举报手机号"  name="Be_report_phone" value="{{.Be_report_phone}}"/>
				<input type="text" class="t time" id="shtime1" name="abtime" value="{{.abtime}}" readonly="readonly" onFocus="var shtime2=$dp.$('shtime2');WdatePicker({onpicked:function(){shtime2.focus();},maxDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd HH:mm'})" placeholder="审核时间" />
				<span class="fg">~</span>
				<input type="text" class="t time" id="shtime2" name="aetime" value="{{.aetime}}" readonly="readonly" onFocus="var time1=$dp.$('shtime1');WdatePicker({minDate:'#F{$dp.$D(\'shtime1\')}',maxDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd HH:mm'})" placeholder="审核时间" />
				<input type="text" class="t" placeholder="审核人" name="Audit_user_name" value="{{.Audit_user_name}}"/>
				<input type="submit" class="btn" value="搜 索" />
				<input type="reset" class="btn" value="重 置" />
				<br class="clr" />
			</form>
		</div>

		<div class="default-table-box">
			<div class="default-table">
				<table border="0" cellspacing="0" cellpadding="0" width="100%">
					<tr>
						<th width="230">举报单号</th>
						<th width="180">用户手机号</th>
						<th width="230">举报时间</th>
						<th width="180">被举报用户手机号</th>
						<th>被举报文章标题</th>
						<th width="270">被举报地址</th>
						<th width="230">审核时间</th>
						<th width="100">审核人</th>
						<th width="100">操作</th>
					</tr>
					{{range .Page.List}}
						<tr>
							<td>{{.Report_num}}</td>
							<td>{{substr .Phone 0 3}}****{{substr .Phone 8 11}}</td>
							<td>{{.Report_time}}</td>
							<td>{{substr .Be_report_phone 0 3}}****{{substr .Be_report_phone 8 11}}</td>
							<td><p>{{.Article_title}}</p></td>
							<td>{{.Be_report_address}}</td>
							<td>{{.Audit_time}}</td>
							<td>{{.Audit_user_name}}</td>
							<td>{{if haspermission $.userId "report:detail"}}
							<a href="/report/detail/{{.Id}}" class="operation view" title="查看"></a>
							{{end}}</td>
						</tr>
					{{end}}
				</table>
			</div>
			{{if ne (len .Page.List) 0}}
					<div class="default-pages margin_ten">
				<form method="post" class="pageForm">
					<input type="hidden" name="PageNo" value="{{.Page.PageNo}}"/>
					<input type="hidden" name="SizePage" value="{{.SizePage}}"/>
					
					<input type="hidden"  name="Report_num" value="{{.Report_num}}"/>
				<input type="hidden"  name="Phone" value="{{.Phone}}"/>
				<input type="hidden"  name="rbtime" value="{{.rbtime}}"  />

				<input type="hidden"  name="retime" value="{{.retime}}" />
				<input type="hidden"  name="Article_title" value="{{.Article_title}}"/>
				<input type="hidden"  name="Be_report_phone" value="{{.Be_report_phone}}"/>
				
				<input type="hidden"  name="abtime" value="{{.abtime}}" />
				<input type="hidden"  name="aetime" value="{{.aetime}}" />
				<input type="hidden"   name="Audit_user_name" value="{{.Audit_user_name}}"/>
				</form>
				<div>共{{.Page.TotalCount}}条记录，每页&nbsp;<em><b>{{.SizePage}}</b><i>^</i><ul><li data-num="10">10</li><li data-num="20">20</li><li data-num="40">40</li></ul></em>条</div>
				<ul>
					<li><span>{{.Page.PageNo}}/{{.Page.TotalPage}}页</span></li>
					<li><a href="javascript:void(0)" id="first">首页</a></li>
					<li><a href="javascript:void(0)" id="pre">上一页</a></li>
					<li><a href="javascript:void(0)" id="next" total="{{.Page.TotalPage}}">下一页</a></li>
					<li><a href="javascript:void(0)" id="last" pageNo="{{.Page.TotalPage}}">尾页</a></li>
					<li><span>跳转至第</span></li>
					<li><input type="text" id="jump"/></li>
					<li><span>页</span></li>
				</ul>

			</div>
			{{end}}
		</div>
	</div>
</div>

<script type="text/javascript">
jQuery(function($){
	$("#jump").on("blur",function(){
		var jump=$(this).val()
		if(jump<=parseInt($("#next").attr("total"))&&jump>=1){
			$("[name=PageNo]").val(jump);
			$(".pageForm").attr("action",window.location).submit()
		}else{
			$(this).val("")
		}
	});
	//首页
	$("#first").on("click",function(){
		$("[name=PageNo]").val(1);
		$(".pageForm").attr("action",window.location).submit()
	});
	//尾页
	$("#last").on("click",function(){
		$("[name=PageNo]").val($(this).attr("PageNo"));
		$(".pageForm").attr("action",window.location).submit()
	});
	//上一页
	$("#pre").on("click",function(){
		if(parseInt($("[name=PageNo]").val())-1>=1){
			$("[name=PageNo]").val(parseInt($("[name=PageNo]").val())-1);
			$(".pageForm").attr("action",window.location).submit()
		}
	});
	//下一页
	$("#next").on("click",function(){
		if(parseInt($("[name=PageNo]").val())+1<=parseInt($("[name=PageNo]").attr("total"))){
			$("[name=PageNo]").val(parseInt($("[name=PageNo]").val())+1);
			$(".pageForm").attr("action",window.location).submit()
		}
	});
	$(".default-pages div em").toggle(function(){
		$(this).find("ul").show();
	},function(){
		$(this).find("ul").hide();
	});

	$(".default-pages div ul li").on("click",function(){
		$(".default-pages div em b").text($(this).data("num"));
		$("[name=PageNo]").val(1);
		$("[name=SizePage]").val($(this).data("num"));
		$(".pageForm").attr("action",window.location).submit();
	});
});
</script>
